package com.xszx.service.impl;

import com.xszx.bean.EmpInfo;
import com.xszx.bean.UserAttendance;
import com.xszx.bean.UserVocate;
import com.xszx.dao.UserDao;
import com.xszx.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author MarFloral
 * @date 2022/12/9 13:55
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserDao userDao;

    @Override
    public int addVocate(UserVocate userVacate) {
        return userDao.addVocate(userVacate);
    }

    @Override
    public EmpInfo selectIndividualInfo(String empNo) {
        return userDao.selectIndividualInfo(empNo);
    }

    @Override
    public int addAttendance(UserAttendance userAttendance) {
        return userDao.addAttendance(userAttendance);
    }

    @Override
    public List<UserVocate> selectMyVacate(Map<String, Object> map) {
        return userDao.selectMyVacate(map);
    }

    @Override
    public int selectMyVacateCount(String empNo) {
        return userDao.selectMyVacateCount(empNo);
    }

    @Override
    public List<UserAttendance> selectMyAttd(Map<String, Object> map) {
        return userDao.selectMyAttd(map);
    }

    @Override
    public int selectMyAttdCount(String empNo) {
        return userDao.selectMyAttdCount(empNo);
    }
}
